package com.ditian.http;


/**
 * 响应信息
 * @author chenweiyi
 *
 */
public class Response {
	private byte[] content;//返回的信息 result content
	
    private int status;//返回的状态码 status code
    
    private String json;
    
    public Response(){
    	
    }

    public Response(byte[] content, int status){
        this.content = content;
        this.status = status;
        if(content!=null){
        	try {
				this.json = new String(content,"UTF-8");
				System.out.println(json);
			} catch (Exception e) {
			}
        }
        
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    
    public String getJson(){
    	
    	return this.json;
    }
}
